//A place to store it float currentMaxV; //Set it currentMaxV = sliderX.maxValue; //Detect it if(sliderX.maxValue > currentMaxV) { //Slider max value changed currentMaxV = sliderX.maxValue; }